package String;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: adol book
 * Date: 2022-04-26
 * Time: 15:46
 */
public class demo1 {
    public static class A<T> {
        T value;

     A(T value) {
         this.value = value;
        }

        T get() {
            return value;
        }

        @Override
        public String toString() {
            return "A{" +
                    "value=" + value +
                    '}';
        }
    }

    public static void main(String[] args) {
        A<Integer> tem = new A<>(13);
        A<Character> tem1 = new A<>('w');
        tem.get();
        System.out.println(tem);
        System.out.println(tem1);
    }
}

